package model
{
	import model.AnneeEtude;
	import model.Matiere;
	import model.TypeEnseignement;
	
	[RemoteClass(alias="model.Enseignement")]
	[Bindable]
	public class Enseignement
	{
		private var m_id_enseignement	:Number;
		private var m_id_matiere		:Number;
		private var m_id_type_ens		:Number;
		private var m_id_an_etude 		:Number;
		private var m_id_service		:Number;
		private var m_duree_matiere		:Number = 0;
		private var m_nb_gpe			:Number = 0;
		private var m_aMatiere			:Matiere;
		private var m_aTypeEnseignement	:TypeEnseignement;
		private var m_aAnneeEtude		:AnneeEtude;
		private var m_collServices		:Array;
		
			
		public function toString():String
		{
			var type : String = this.m_aTypeEnseignement.libelle;
			return m_duree_matiere+" min "+type+" "+nb_gpe+" groupe(s)";
		}
		
		
		
		
		public function Enseignement()
		{
		}
		
		public function get id_enseignement():Number{
			return m_id_enseignement;
		}
		
		public function set id_enseignement(value:Number):void{
			m_id_enseignement = value;
		}	
			
		public function get id_matiere():Number{
			return m_id_matiere;
		}
		
		public function set id_matiere(value:Number):void{
			m_id_matiere = value;
		}
		
		public function get id_type_ens():Number{
			return m_id_type_ens;
		}
		
		public function set id_type_ens(value:Number):void{
			m_id_type_ens = value;
		}
		
		public function get id_an_etude():Number{
			return m_id_an_etude;
		}
		
		public function set id_an_etude(value:Number):void{
			m_id_an_etude = value;
		}
		
		public function get id_service():Number{
			return m_id_service;
		}
		
		public function set id_service(value:Number):void{
			m_id_service = value;
		}
		
		public function get duree_matiere():Number{
			return m_duree_matiere;
		}
		
		public function set duree_matiere(value:Number):void{
			m_duree_matiere = value;
		}
		
		public function get nb_gpe():Number{
			return m_nb_gpe;
		}
		
		public function set nb_gpe(value:Number):void{
			m_nb_gpe = value;
		}
		
		public function get aMatiere():Matiere{
			return m_aMatiere;
		}
		
		public function set aMatiere(value:Matiere):void{
			m_aMatiere = value;
		}
		
		public function get aTypeEnseignement():TypeEnseignement{
			return m_aTypeEnseignement;
		}
		
		public function set aTypeEnseignement(value:TypeEnseignement):void{
			m_aTypeEnseignement = value;
		}
		
		public function get aAnneeEtude():AnneeEtude{
			return m_aAnneeEtude;
		}
		
		public function set aAnneeEtude(value:AnneeEtude):void{
			m_aAnneeEtude = value;
		}
		
		public function get collServices():Array{
			return m_collServices;
		}
		
		public function set collServices(value:Array):void{
			m_collServices = value;
		}
		
	}
}